﻿/*
Debug.java - Source Code for XiangQi Wizard Android Edition

XiangQi Wizard Android Edition - a Chinese Chess Program for Android Platform
Designed by Jpcxc (jpcxc@126.com), Version: 0.1, Last Modified: April. 2011
Copyright (C) 2011-2015 www.xqbase.com and jpcxc@126.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package cn.letlet.utils;

import android.util.Log;

/**
 * The Class Debug.<br>
 * Shown debug information in Logcat.
 */
public class Debug {
	
	/** The Constant TAG. */
	public static final String TAG = "xqwdroid";
	
	/** Set if enable debug information. */
	private final static boolean DEBUG_ENABLE = true;

	/**
	 * Print information.
	 *
	 * @param msg The information to be printed.
	 */
	public static final void i(String msg) {
		if (DEBUG_ENABLE) {
			Log.i(TAG, msg);
		}
	}

	/**
	 * Print debug information.
	 *
	 * @param msg The information to be printed.
	 */
	public static final void d(String msg) {
		if (DEBUG_ENABLE) {
			Log.d(TAG, msg);
		}
	}

	/**
	 * Print Error information.
	 *
	 * @param msg The information to be printed.
	 */
	public static final void e(String msg) {
		if (DEBUG_ENABLE) {
			Log.e(TAG, msg);
		}
	}
}
